<link href="css/skin.css" rel="stylesheet" type="text/css" />
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="17" valign="top" background="images/mail_leftbg.gif"><img src="images/left-top-right.gif" width="17" height="29" /></td>
    <td valign="top" background="images/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
        <tr>
          <td height="31"><div class="titlebt">订单管理</div></td>
        </tr>
      </table></td>
    <td width="16" valign="top" background="images/mail_rightbg.gif"><img src="images/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
  <tr>
    <td valign="middle" background="images/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td colspan="2" valign="top">&nbsp;</td>
          <td>&nbsp;</td>
          <td valign="top">&nbsp;</td>
        </tr>
        <tr>
          <td valign="top"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td class="left_txt">当前位置：订单管理</td>
              </tr>
              <tr>
                <td height="20"><table width="100%" height="1" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
                    <tr>
                      <td></td>
                    </tr>
                  </table></td>
              </tr>
              <tr>
                <td><table width="100%" height="55" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                      <td width="10%" height="55" valign="middle"><img src="images/card.jpg" width="54" height="55"></td>
                      <td width="90%" valign="top"><span class="left_txt2">在这里，您可以根据您的网站要求，管理类别信息</span><br>
                        <span class="left_txt2">包括</span><span class="left_txt3">登录名，姓名，状态</span><span class="left_txt2">等。</span></td>
                    </tr>
                  </table></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="nowtable">
                    <tr>
                      <td class="left_bt2">&nbsp;&nbsp;&nbsp;&nbsp;订单列表</td>
                    </tr>
                  </table></td>
              </tr>
              <tr>
                <td><table style="width:100%;border-collapse:collapse;border:1px solid #006D84" cellspacing="0px">
                    <tr style="background-color:#f2f2f2">
                      <th style="width:15%; border:1px solid #006D84"> 订单号 </th>
					  <th style="width:15%; border:1px solid #006D84"> 订单状态 </th>
					  <th style="width:15%; border:1px solid #006D84"> 提交人 </th>
					  <th style="width:15%; border:1px solid #006D84"> 提交时间 </th>
                      <th style="width:10%;border:1px solid #006D84"> 操作 </th>
                    </tr>
                    {section name=uID loop=$orders.data }
                    <tr style="text-align:center">
                      <td class="left_bt2" style="width:15%;border:1px solid #006D84"> {$orders.data[uID].fdSyncID} </td>
					  <td class="left_bt2" style="width:15%;border:1px solid #006D84"> {$arrayStateOption[$orders.data[uID].fdStatus]} </td>
					  <td class="left_bt2" style="width:15%;border:1px solid #006D84"> {$orders.data[uID].fdLogin} </td>
					  <td class="left_bt2" style="width:15%;border:1px solid #006D84"> {$orders.data[uID].fdSubmit} </td>
                      <td style="width:10%;border:1px solid #006D84"><a href="admin-listorder.php?f=edit&id={$orders.data[uID].id}"><img src="images/pencil.png" border="0"/></a>&nbsp;</td>
                    </tr>
                    {/section}
                    <tr style="border-top:1px dotted #CCCCCC; text-align:center; background-color:#FFFBE5">
                      <td colspan="7"> {if $orders.countRs > 0}
                        <li class="left_bt2" style="display:inline; font-size:12px">{$nowtype}共&nbsp;{$orders.countRs}&nbsp;项&nbsp;&nbsp;每页显示&nbsp;{$orders.pageSize}&nbsp;项&nbsp;&nbsp;第&nbsp;{$orders.page}&nbsp;页/共&nbsp;{$orders.countPage}&nbsp;页&nbsp;&nbsp;&nbsp;&nbsp; <a href="/admin-listorder.php?page={$orders.first}" class="a1">首页</a>&nbsp; <a href="/admin-listorder.php?page={$orders.previous}" class="a1">上一页</a>&nbsp; <a href="/admin-listorder.php?page={$orders.next}" class="a1">下一页</a>&nbsp; <a href="/admin-listorder.php?page={$orders.last}" class="a1">尾页</a> </li>
                        {/if} </td>
                    </tr>
                  </table>
                  {if $isShow=='E'}
                  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="nowtable">
                          <tr>
                            <td class="left_bt2">&nbsp;&nbsp;&nbsp;&nbsp;订单详情</td>
                          </tr>
                        </table></td>
                    </tr>
					<tr>
					  <td>
						<table width="100%" border="0" cellspacing="0" cellpadding="0">                            
                            <tr>
                              <td height="30" align="right" class="left_txt2">订单号： </td>
                              <td height="30" class="left_txt">{$order[0].fdSyncID}</td>
                              <td height="30" align="right" class="left_txt2">提交时间：</td>
                              <td height="30" class="left_txt">
							  {$order[0].fdSubmit}
							  </td>
                            </tr>
							<!-- <tr>
							 <td height="30" align="right" class="left_txt2">登录人：</td>
                              <td height="30" class="left_txt">
							  {$order[0].fdName}（{$order[0].fdMobilePhone}）
							  </td>
							  <td height="30" align="right" class="left_txt2">登录凭据：</td>
                              <td height="30" class="left_txt">
							  {$order[0].fdLogin}
							  </td>
							</tr>
							<tr>
							 <td height="30" align="right" class="left_txt2">  登录公司：</td>
                              <td height="30" class="left_txt">
							  {$order[0].fdCompany}（{$order[0].fdPosition}）
							  </td>
							  <td height="30" align="right" class="left_txt2">登录电话：</td>
                              <td height="30" class="left_txt">
							  {$order[0].fdTelePhone}
							  </td>
							</tr> -->
                            <tr>                              
                              <td height="30" align="right" class="left_txt2">采购人：</td>
                              <td height="30" class="left_txt">
							  {$order[0].fdUserName}（{$order[0].fdUserPhone}）
							  </td>
							  <td height="30" align="right" class="left_txt2">采购邮箱：</td>
                              <td height="30" class="left_txt">
							  {$order[0].fdUserEmail}
							  </td>
                            </tr>
                            <tr>
                              <td height="30" align="right" class="left_txt2">采购公司： </td>
                              <td height="30" class="left_txt">{$order[0].fdUserCompany}（{$order[0].fdUserPosition}）</td>
                              <td height="30" align="right" class="left_txt2">采购电话：</td>
                              <td height="30" class="left_txt">
							  {$order[0].fdUserTelephone}
							  </td>
                            </tr>
							<tr>
                              <td height="30" align="right" class="left_txt2">采购地址： </td>
                              <td height="30" class="left_txt" colspan="3">{$order[0].fdUserAddress}</td>
                            </tr>
							<tr>
								<td height="30" align="right" class="left_txt2">收货人：</td>
								<td height="30" class="left_txt">{$order[0].fdClient}（{$order[0].fdClientPhone}）</td>
								<td height="30" align="right" class="left_txt2">收货邮箱： </td>
                              <td height="30" class="left_txt">{$order[0].fdEmail}</td>
							</tr>
                            <tr>
                              <td height="30" align="right" class="left_txt2">收货地址： </td>
                              <td height="30" class="left_txt" colspan="3">{$order[0].fdClientAddress}</td>
                            </tr>
							<tr>
                              <td height="30" align="right" class="left_txt2">备注： </td>
                              <td height="30" class="left_txt" colspan="3">{$order[0].fdMemo}</td>
                            </tr>
                          </table>
					  </td>
					</tr>
					<tr>
					<td>
					<table style="width:100%;border-collapse:collapse;border:1px solid #006D84" cellspacing="0px">
                    <tr style="background-color:#f2f2f2">
                      <th style="width:15%; border:1px solid #006D84"> 产品名称 </th>
					  <th style="width:15%; border:1px solid #006D84"> 产品单价 </th>
					  <th style="width:15%; border:1px solid #006D84"> 产品数量 </th>					                      
                    </tr>
                    {section name=iID loop=$items }
                    <tr style="text-align:center">
                      <td class="left_bt2" style="width:15%;border:1px solid #006D84"> {$items[iID].fdName} </td>
					  <td class="left_bt2" style="width:15%;border:1px solid #006D84"> {$items[iID].fdPrice}  </td>
					  <td class="left_bt2" style="width:15%;border:1px solid #006D84"> {$items[iID].fdCount}  </td>
                    </tr>
                    {/section}                    
                  </table>
					</td>
					</tr>
                    <tr>
                      <td><form name="form2" method="POST" action="admin-listorder.php">
                          <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <input type="hidden" name="f" value="edit" />
                            <input type="hidden" name="id" size="30" value="{$order[0].id}" />
                            <tr>
                              <td height="30" align="right" class="left_txt2">订单状态： </td>
                              <td>&nbsp;</td>
                              <td height="30"><select class="easyui-combobox" name="state">
                                  <option value="">-请选择-</option>{html_options options = $arrayStateOption selected = $order[0].fdStatus}
                                </select></td>
                              <td height="30" class="left_txt">订单状态</td>
                            </tr>
                            <tr>
                              <td height="30" align="center" colspan="4"><input type="submit" value="保存" name="btn1" />
                                <input type="reset" value="取消" name="btn2" /></td>
                            </tr>
                          </table>
                        </form></td>
                    </tr>
                  </table>
                  {/if} 
                  </td>
              </tr>
            </table></td>
        </tr>
      </table>
    <td background="images/mail_rightbg.gif">&nbsp;</td>
  </tr>
  <tr>
    <td valign="middle" background="images/mail_leftbg.gif"><img src="images/buttom_left2.gif" width="17" height="17" /></td>
    <td height="17" valign="top" background="images/buttom_bgs.gif"><img src="images/buttom_bgs.gif" width="17" height="17" /></td>
    <td background="images/mail_rightbg.gif"><img src="images/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
</table>
</body>
